
#ifndef UI_CADTOOLBARSELECT_H
#define UI_CADTOOLBARSELECT_H

class UI_CadToolBar;

#include "ui_ui_cadtoolbarselect.h"
#include "..\gui_export.h"

class GUI_EXPORT UI_CadToolBarSelect : public QWidget, public Ui::UI_CadToolBarSelect
{
    Q_OBJECT

public:
    UI_CadToolBarSelect(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0);
    ~UI_CadToolBarSelect();

public slots:
    virtual void mousePressEvent( QMouseEvent * e );
    virtual void contextMenuEvent( QContextMenuEvent * e );
    virtual void setCadToolBar( UI_CadToolBar * tb );
    virtual void selectSingle();
    virtual void selectContour();
    virtual void deselectAll();
    virtual void selectAll();
    virtual void selectWindow();
    virtual void deselectWindow();
    virtual void selectIntersected();
    virtual void deselectIntersected();
    virtual void selectInvert();
    virtual void selectLayer();
    virtual void setSelectAction( PF_ActionInterface * selectAction );
    virtual void setNextAction( int nextAction );
    virtual void runNextAction();
    virtual void back();

protected:
    UI_CadToolBar* cadToolBar;
    WF_ActionHandler* actionHandler;

protected slots:
    virtual void languageChange();

private:
    int nextAction;
    PF_ActionInterface* selectAction;

    void init();

};

#endif // QG_CADTOOLBARSELECT_H
